<template>
    <div id="home">
        <h1>{{msg}}</h1>
        <button @click="mySwitch" value="btnName"></button>
    </div>
</template>

<script>
    export default {
        name: "Home-page",
        props: {
            msg: String,
            btnName: String
        }, methods: {
            mySwitch: function () {
                console.log("switch ")
            }
        }
    }
</script>

<style scoped>
    #home {
        height: 400px;
        width: 400px;
    }
</style>